package Day09;

public class Texxt5 {
    private static int[] numerbs = {1,2,3,4,5};

    public static void main(String[] args) {
        try{
            int number = getNumber(9);
            System.out.println(number);
        } catch(ArrayIndexOutOfBoundsException e){
            System.out.println("数组下标越界了");
        } finally{
            System.out.println("仍然可以执行的代码");
        }
    }

    public static int getNumber(int index){
        return numerbs[index];
    }
}
